export interface DjRecordTableRow {
  batchId: number
  code: string
  createTime: string
  creator: string
  creatorId: number
  delFlag: number
  id: number
  itemNum: number
  receiver: string
  receiverId: number
  status: string
  updateTime: string
  formId: string
}

export interface DjRecordClueSubItemsTableRow {
  batchCode: string
  batchId: number
  clueId: number
  clueName: string
  collectType: string
  dj: boolean
  djStatus: string
  djStatusCode: string
  djqr: boolean
  imageIds: string
  itemCode: string
  itemId: number
  itemName: string
  itemNum: number
  itemType: string
  remark: string
  storagePlace: string
  subItemCode: string
  subItemId: number
  transferUser: string
  xq: boolean
  years: string
  zc: boolean
}
export interface DjRecordClueTableRow {
  batchId: number
  clueName: string
  collectType: string
  djStatus: string
  imageIds: string
  subItemCode: string // 运行时生成的
  itemCode: string
  itemId: number
  itemName: string
  itemNum: number
  itemType: string
  remark: string
  subItems: DjRecordClueSubItemsTableRow[]
  transferUser: string
  years: string
  _imageFiles: any[] // 运行时生成的
}

export interface WorkFlow {
  batchId: string
  creator: string
  receiver: string
  infoVo: {
    approvalRecordsList: Array<{
      remark: string
      result: string
      time: string
      type: string
      userName: string
    }>
    assigneeFlag: number
    fromId: string
    otherParamFlag: boolean
    reapprovalButton: boolean
    status: string
    workflow: string
    workflowList: Array<{
      key: string
      remark: string
      value: any
    }>
  }
}

export default {
  list: {
    url: '/collection/djRecord/recordList',
    method: 'GET'
  },
  itemList: {
    url: '/collection/djRecord/itemList',
    method: 'GET'
  },
  workFlow: {
    url: '/collection/djRecord/workFlow',
    method: 'GET'
  }
} as ApiConfig
